<template>
  <!--  组件结构-->
  <div class="demo">
    <h2>学生名称：{{ name }}</h2>
    <h2>学生年龄：{{ age }}</h2>
  </div>
</template>

<script>
//组件脚本
export default {
  name: 'Student',
  data() {
    return {
      name: "halk",
      age: "1118",
    }
  }
};

</script>

<style scoped lang="less">
//组件样式
.demo {
  background: cornflowerblue;
}
</style>
